# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=maui-shelf
_pkgname=shelf
pkgver=3.0.1
pkgrel=1
pkgdesc='Document and EBook collection manager'
url='https://mauikit.org/'
arch=(loong64 x86_64)
license=(GPL3)
depends=(mauikit-documents mauikit-filebrowsing mauikit-texteditor poppler-qt5 hicolor-icon-theme)
makedepends=(extra-cmake-modules)
groups=(maui)
source=(https://download.kde.org/stable/maui/$_pkgname/$pkgver/$_pkgname-$pkgver.tar.xz)
sha256sums=('18801d7e87bef1cbdaaa1ae51bc5784250ff4f1c78dd83ecb08a3177f1190f0b')

build() {
  cmake -B build -S $_pkgname-$pkgver
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}
